package org.springframework.ai.dashscope.autoconfigure;

import org.springframework.ai.dashscope.DashscopeAiImageOptions;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * @author wangjun
 */
@ConfigurationProperties(DashscopeAiImageProperties.CONFIG_PREFIX)
public class DashscopeAiImageProperties extends DashscopeAiParentProperties {

	public static final String CONFIG_PREFIX = "spring.ai.dashscope.image";

	private boolean enabled = true;

	@NestedConfigurationProperty
	private DashscopeAiImageOptions options = DashscopeAiImageOptions.builder().build();

	public DashscopeAiImageOptions getOptions() {
		return this.options;
	}

	public void setOptions(DashscopeAiImageOptions options) {
		this.options = options;
	}

	public boolean isEnabled() {
		return this.enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

}
